stopwordsText = r'stopwords\cn_stopwords.txt'

def stopWordsTextFile(stopWords:str):
    global stopwordsText
    if(stopWords == "baidu"):
        stopwordsText = r'stopwords\baidu_stopwords.txt'
    if(stopWords == "cn"):
        stopwordsText = r'stopwords\cn_stopwords.txt'
    if(stopWords == "hit"):
        stopwordsText = r'stopwords\hit_stopwords.txt'
    if(stopWords == "scu"):
        stopwordsText = r'stopwords\scu_stopwords.txt'

def stopwordslist():
    stopwords = [line.strip() for line in open(stopwordsText, encoding='UTF-8').readlines()]
    return stopwords
